<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
	<meta name="format-detection" content="telephone=no,address=no,email=no"/>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<title>KAA电商管理后台_会员添加</title>
	<script type="text/javascript" src="${path}/s/jquery-2.1.1.min.js"></script>
	<script src="${path}/js/sidebar-menu.js"></script>
	<link href="${path}/css/login.css" rel="stylesheet" media="all">
</head>
<script>
    function selectLevel(value){
        $("#member").val(value)
    }
</script>
<body class="main">
	<h1>KAA电商管理后台</h1>
	<jsp:include page="sidebarNav.jsp"></jsp:include><!-- main_sidebar -->

	<div class="main_con_wrap">
		<div class="main_con member_add" id="wrap">
			<form name="messages"  class="messages" id="messages" action="${path}/addUser ">
				<input name="member" id="member" style="display: none"/>
				<%--<input name="gender" id="gender" style="display: none"/>--%>
				<p>
					<span class="title fl">用户名*：</span>
					<input type="text" name="real-name" id="real-name" placeholder="用户名" maxlength="16" required="required" />
					<span class="clear"></span>
				</p>
				
				<p>
					<span class="title fl">会员组*：</span>
					<select id="memberlist_cat" onchange="selectLevel(this.value);">
						<option selected="" value="">选择会员组</option>
						<c:forEach items="${memberGroupList}" var="item">
							<option value="${item.memberLevel}">${item.memberLevel}</option>
						</c:forEach>
					</select>
					<span class="clear"></span>
				</p>
				
				<p>
					<span class="title fl">姓名*：</span>
					<input type="text" name="name" id="name" placeholder="姓名" maxlength="16" required="required" />
					<span class="clear"></span>
				</p>
				
				<p class="thesex">
					<span class="title fl">性别*：</span>
					<input type="radio" name="gender" value="男" checked="checked" id="man_sex">
					<span class="sex fl">男</span>
					<input type="radio" name="gender" value="女" id="woman_sex">
					<span class="sex fl">女</span>
					<span class="clear"></span>
				</p>
				
				<p>
					<span class="title fl">手机号码*：</span>
					<input type="tel" name="phone" id="phone" placeholder="手机号码" maxlength="11" required="required" />
					<span class="clear"></span>
				</p>
				
				<p>
					<span class="title fl">邮箱*：</span>
					<input name="email" id="email" placeholder="电子邮箱"  autocomplete="off" value="" type="text" required="required" />
					<span class="clear"></span>
				</p>
				<button type="submit" class="memberadd_btn">保存</button>
			</form>
		</div><!-- main_con -->
	</div><!-- main_con_wrap -->

	<div class="footer_copyright">
		<p>苏州知行合一网络科技有限公司提供技术支持，版权所有</p>
	</div><!-- footer_copyright -->

<script>
	/////////////////////////侧边栏按钮
	$.sidebarMenu($('.sidebar-menu'))
</script>
</body>
</html>